<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/layout.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>平方网建材网</title>
    <link href="/temp/css/iframe.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/default.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/top.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/right.css" rel="stylesheet" type="text/css" />
    <link href="/temp/css/page.css" rel="stylesheet" type="text/css" />
    <link href="/temp/scripts/jqtransformplugin/jqtransform.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/common/jquery-1.7.2.min.js"></script>
    <script type="text/javascript" src="/temp/scripts/jqtransformplugin/jquery.jqtransform.js"></script>
    <script src="/common/json2.js" type="text/javascript"></script>
    <script src="/common/jsmart.js" type="text/javascript"></script>
    
    <script src="/temp/scripts/default.js" type="text/javascript"></script>
    <script src="/temp/scripts/urledit.js" type="text/javascript"></script>
    <script src="/temp/scripts/search.js" type="text/javascript"></script>

    <script language="javascript">
        String.prototype.Trim = function () {
            return this.replace(/(^\s*)|(\s*$)/g, "");
        }  
        $(function () {
            $('form').jqTransform({ imgPath: 'img/' });
        });
    </script>
</head>
<body>
    <center>
        <div id="box">
            <div id="top">
                <!-- top_up -->
                <div class="top_up">
                    <div class="fl">
                        <img src="/temp/resources/images/top_up_bs.jpg" width="148" height="24">
                    </div>
                    <div class="fl top_bs_title">
                        <a href="#">旗下网站</a>
                    </div>
                    <div class="fr top_phone">
                        热线电话: 65377007*8007</div>
                </div>
                <!-- top_logo -->
                <div class="nf top_down">
                    <div class="top_left fl">
                        <div class="top_logo_up">
                            <img src="/temp/resources/images/top_logo.png" width="280" height="62" style="cursor: pointer;"
                                onclick="javascript:window.location='/home.html';" title="平方建材网">
                        </div>
                        <div class="top_logo_down">
                        </div>
                        <div class="top_up_hb">
                        </div>
                    </div>
                    <!-- top_main -->
                    <div class="top_main fl">
                        <img src="/temp/resources/images/top_center_bj.png" width="289" height="178" border="0" usemap="#Map"
                            class="ok_img">
                        <map name="Map" id="Map">
                            <area shape="rect" coords="19,73,78,93" href="#" onclick="sethome(this, window.location)"
                                title="设为首页">
                            <area shape="rect" coords="42,30,99,48" href="#" title="会员区">
                            <area shape="rect" coords="110,3,151,17" href="help.html" title="帮助">
                            <area shape="rect" coords="200,32,259,50" href="#" onclick="window.external.addFavorite('http://www.m2.com.cn','平方建材网');"
                                title="添加收藏">
                            <area shape="rect" coords="231,72,285,89" href="home.html" title="返回主页">
                        </map>
                    </div>
                    <!-- top_right -->
                    <div class="top_right fr">
                        <!-- top_right_username -->
                        <div class="top_right_yh">
                            <div class="top_right_yh">
                                <div class="quit fr">
                                    <div class="fl dl">
                                        <a style="_line-height: 18px; font-size: 13px;" href="login.html" target="_blank"
                                            id="urllogin">登录</a></div>
                                    <div class="fl zc">
                                        <a style="_line-height: 18px; font-size: 13px;" href="#">注册</a></div>
                                </div>
                                <div class="welcome fr not_login" style="font-size: 13px; color: #00A0C6;">
                                    你还未登录</div>
                            </div>
                        </div>
                        <!-- top_right_search -->
                        <div class="nf top_right_search">
                            <div>
                                <form>
                                <div class="jqTransformSelectWrappere">
                                        <select id="mainsearchtype">
                                            <option value="建材">建材</option>
                                            <option value="供应商">供应商</option>
                                        </select>
                                </div>
                                </form>
                                <div class="fl sousuo_wbk">
                                    <input name="" type="text" style="" class="top_wbk ui-autocomplete-input" id="mainsearchinput"
                                        autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"></div>
                                <div class="fl an">
                                    <a href="#" id="mainsearch" onclick="topsearch()">快速搜索</a></div>
                            </div>
                        </div>
                        <div class="nf gjz">
                            <ul>
                                <li style="color: #8F9193">关键字</li>
                            </ul>
                        </div>
                    </div>
                    <div class="nf">
                    </div>
                    <!-- top_menu -->
                    <div class="nf top_menu">
                        <div class="top_menu_center">
                            <ul>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/home.html">首页</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/categorylist.html">材料信息</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="/temp/search/supplier.html">厂商信息</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#">无忧询价</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#">快递查询</a></div>
                                </li>
                                <li>
                                    <div class="lx fl">
                                    </div>
                                    <div class="fl dh">
                                        <a href="#" id="specialmenu"></a>
                                    </div>
                                </li>
                            </ul>
                        </div>
                        <div class="top_up_zh">
                        </div>
                    </div>
                </div>
            </div>
            <!-- InstanceBeginEditable name="EditMain" -->   
            <link href="/temp/css/gysqy.css" rel="stylesheet" type="text/css" />
            <link href="/temp/css/gglb.css" rel="stylesheet" type="text/css" />
            <div id="main">
            	<div id="noticeinfo">
                </div>
                <!-- main_right -->
                <div id="right" class="fl">
                    <!--zxjm-->
                    <div class="right_zxjm" style="height: 200px;">
                        <div class="right_zxjm_title">
                            公告</div>
                        <div class="right_gz">
                            <ul id="noticelist">
                            </ul>
                        </div>
                    </div>
                    <div>
                        <img src="/temp/resources/images/gg_bz.jpg" width="290" height="108" alt=""></div>
                </div>
            </div>
            <script id="list" type="text/x-jsmart-tmpl">
            	{foreach $rows as $j => $notice}
                	<li><a href="/temp/notice/info.html?id={$notice.value._id}" title="{$notice.value.title}" target="_blank">{$notice.value.title}</a></li>
				{/foreach}
            </script>
            <script id="info" type="text/x-jsmart-tmpl">            
                <div class="main_wzdh">
                    所在位置：<a href="/temp/notice/list.html">公告</a> &gt;
                    <label>
                        {$title}</label></div>
                <!-- main_left -->
                <div class="fl gxxx_left">
                    <div class="gysqy" style="margin-top: 0px;">
                        <div class="gglb">
                            <div class="gglb_title">
                                {$title}</div>
                            <div class="gglb_rq">
                                <div class="fl gglb_date">
                                    发布日期：{$effectivedate}</div>
                                <div class="fl gglb_time">
                                    查看次数：{$clicknum}</div>
                            </div>
                            <div class="nf gglb_nr">
							{$content}
                            </div>
                        </div>
                    </div>
                </div>
            </script>
			<script>
            $(document).ready(
                function(){		
                    var date = formatDate(new Date(), 'yyyy-MM-dd');
                    $.ajax({
                        url: '/service/_view/getNewestNotice?reduce=false&startkey=["1",{}]&endkey=["1","' + date + '"]&descending=true&limit=6',
                        type: 'GET',
                        dataType: 'json',
                        success:function(data){
                            var tpl = new jSmart(document.getElementById('list').innerHTML);
                            var res = tpl.fetch(data);
                            $("#noticelist").html(res);
                        }
                    });
					//详情
					var myurl=new UrlEdit.URL(document.URL);
					var _id = "";		
					if(myurl.get("id") != undefined && myurl.get("id") != "")
						_id = myurl.get("id");
                    $.ajax({
                        url: '/shinedeliver/' + _id,
                        type: 'GET',
                        dataType: 'json',
                        success:function(data){
                            var tpl = new jSmart(document.getElementById('info').innerHTML);
                            var res = tpl.fetch(data);
                            $("#noticeinfo").html(res);
                        }
                    });
                });
            </script>

			<!-- InstanceEndEditable -->
            <script id="page" type="text/x-jsmart-tmpl">
				<div class="page">
					<div class="pagination">
						{if $pagecount > 1}			
							<a class="pageNum"><b>
							{$currentpage}
							</b>/<b>
							{$pagecount}
							</b></a>	
							{if (1 != $currentpage)}
								<a href="{urlset('pageIndex', 1)}" class="first">首页</a>
								<a href="{urlset('pageIndex', $currentpage-1)}" class="prev">上一页</a>
							{/if}	
							
							{for $i=$start to $end}
								{if ($i == $currentpage)}
									<span class="current">{$i}</span>
								{else}
									<a href="{urlset('pageIndex', $i)}">{$i}</a>
								{/if}
							{/for}
							
							{if ($pagecount != $currentpage)}
								<a href="{urlset('pageIndex', $currentpage+1)}" class="first">下一页</a>
								<a href="{urlset('pageIndex', $pagecount)}" class="last">尾页</a>
							{/if}	
						{/if}
					</div>
				</div>
			</script>            
            <script id="count" type="text/x-jsmart-tmpl">
			共 {$rows.length} 条记录
			</script>    
            <script id="searchcount" type="text/x-jsmart-tmpl">
			共 {$result.hits.total} 条记录
			</script>
            <div class="nf">
            <iframe allowtransparency="true" src="/temp/partial/bottom.html" frameborder="0" id="bottom_iframe" scrolling="no"></iframe>
            </div>
        </div>
    </center>
</body>
<!-- InstanceEnd --></html>
